import request from '@/utils/request'




export function getCopyRight(params) {
    return request.post('/copy/right/get/CopyRight', params);
}


export function deleteCopyRight(id) {
    return request.delete(`/copy/right/deleteById/${id}`);
}
/**
 * 根据id来查询软件著作信息
 */
export function getCopyRightById(id) {
    return request.get(`/copy/right/getCopyRightById/${id}`);
}

/**
 * 更新软件著作权
 */
export function updateCopyRight(paperData) {
    return request.put('/copy/right/update', paperData);
}


//新增软件著作权
export function saveCopyRight(paperData) {
    return request.post('/copy/right/save', paperData);
}

//根据多个id批量查询数据
export function getCopyRightsByIds(ids) {
    return request.post('/copy/right/getCopyRightByIds', ids);
}

//批量导出
export function exportCopyRight(params) {
    return request.post('/copy/right/export/copyright', params, {
        responseType: 'blob'
    });
}
